<!--
<div>
<a href="#">全部</a>
<a href="#">原创</a>
<a href="#">图片</a>
<a href="#">视频</a>
<a href="#">音乐</a>
</div>
-->
<php>if(empty($weibolist)) {</php>暂无更多信息<php>}</php>
<volist name="weibolist" id="weibo">
<div class="feed_list">
    <php>if ($weibo['is_repost'] == 0) {</php>
        
        <!-- 原创 -->
        <php>if($hideUsername!=1){</php><a href="{:U('wap/Index/weibo',array('uid'=>$weibo['uid']))}">{$weibo['uname']}</a>: <php>}</php>
        <eq name="weibo['is_del']" value="0">
            <php>$detail_more = get_str_length($weibo['content'], true) > 140 ? ' <a href="' . U('wap/Index/detail',array('id'=>$weibo['weibo_id'],'type'=>$weibo['app'])) . '" target="_blank">查看更多&raquo;</a>' : '';</php>
            {$weibo['content']|parseForApi|getShort=###,140,'...'}{$detail_more}<br/>
            <!-- 微博图片显示第一张 -->
            <php>
            if($weibo['feedType']== 'postimage') {
                if(isset($weibo['attach']['0']['attach_url'])){
                </php>
                <a href="{:U('wap/Index/detail',array('weibo_id'=>$weibo['weibo_id']))}"><img src="{$weibo['attach']['0']['attach_small']}" width="100" /></a>
                <php>
                }
            }
            </php>
        <else/>
            <eq name="favorite" value="1"><span style="color:red;">（提示：原微博已被删除，你可以取消收藏）</span></eq>
        </eq>
    <php>}else {</php>
        <!-- 转发 -->
        <php>$forward = $weibo['transpond_data'];</php>
        <php>if($hideUsername!=1){</php><a href="{:U('wap/Index/weibo',array('uid'=>$weibo['uid']))}">{$weibo['uname']}</a>: <php>}</php>
        <php>$forward_detail_more = get_str_length($forward['content'], true) > 140 ? ' <a href="' . U('wap/Index/detail',array('id'=>$forward['weibo_id'],'type'=>$weibo['app'])) . '" target="_blank">查看更多&raquo;</a>' : '';</php>
        转发 
        <eq name="forward['is_del']" value="0">
            <a href="{:U('wap/Index/weibo',array('uid'=>$forward['uid']))}">@{$forward['uname']}</a> 的微博:{$forward['content']|parseForApi|getShort=###,140,'...'}{$forward_detail_more}<br />
            <!-- 转发的原微博图片显示第一张 -->
            <php>
            if($forward['feedType']== 'postimage') {
                if(isset($forward['attach']['0']['attach_url'])){
                </php>
                <a href="{:U('wap/Index/detail',array('weibo_id'=>$forward['weibo_id']))}"><img src="{$forward['attach']['0']['attach_small']}" width="100" /></a>
                <php>
                }
            }
            </php>
            <php>if(!$forward['post_id']){</php>
                <a href="{:U('wap/Index/forward', array('weibo_id'=>$forward['weibo_id']))}">原文转发[{$forward['repost_count']}] </a> 
                <a href="{:U('wap/Index/detail',array('weibo_id'=>$forward['weibo_id']))}">原文评论[{$forward['comment_count']}]</a><br />
                <php>$detail_more = get_str_length($weibo['content'], true) > 140 ? ' <a href="' . U('wap/Index/detail',array('id'=>$weibo['weibo_id'],'type'=>$weibo['app'])) . '" target="_blank">查看更多&raquo;</a>' : '';</php>
            <php>}</php>
        <else/>内容已被删除</br/>
        </eq>

        转发理由: {$weibo['content']|getShort=###,140,'...'}{$detail_more}
    <php>}</php>
    <p>
<eq name="weibo['is_del']" value="0">
    <php>if(!$forward['post_id']){</php>
        <a href="{:U('wap/Index/forward', array('weibo_id'=>$weibo['weibo_id'],'type'=>$weibo['app']))}">转发[{$weibo['repost_count']}]</a> 
    <php>}</php>
    <a href="{:U('wap/Index/detail',array('weibo_id'=>$weibo['weibo_id'],'type'=>$weibo['app']))}">评论[{$weibo['comment_count']}]</a> 
</eq>
    <php>if($weibo['favorited']==1) {</php>
    <a href="{:U('wap/Index/doUnFavorite',array('weibo_id'=>$weibo['weibo_id'],'from'=>ACTION_NAME,'key'=>$keyword,'page'=>$page))}">取消收藏</a> 
    <php>}else {</php>
    <a href="{:U('wap/Index/doFavorite',array('weibo_id'=>$weibo['weibo_id'],'from'=>ACTION_NAME,'key'=>$keyword,'page'=>$page))}">收藏</a>
    <php>}</php>
    <php>if($weibo['uid'] == $ts['user']['uid']) {</php>
    <a href="{:U('wap/Index/doDelete',array('weibo_id'=>$weibo['weibo_id'],'from'=>ACTION_NAME,'key'=>$keyword,'page'=>$page))}">删除</a>
    <php>}</php>
    <em>{$weibo['ctime']} 来自{$from_type[$weibo['from']]}</em>
    </p>
</div>
</volist>